-- GENERATED SPELL FOR [Enchanted Tiki Warrior] --


function spell0_28882(pUnit, Event) --@Incorporeal,Self--
pUnit:FullCastSpellOnTarget(54657,pUnit)
pUnit:RegisterEvent('Sorts_28882', 2275, 1)
end

function Sorts_28882(pUnit, Event)
local choix_sorts_28882 = math.random(0, 0)
if choix_sorts_28882 == 0 then
pUnit:RegisterEvent('spell0_28882', 1, 1)
end
end

function mob28882_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28882', math.random(1500, 3000), 1)
end

function mob28882_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28882_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28882_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28882, 1, 'mob28882_Action')
RegisterUnitEvent(28882, 2, 'mob28882_Leave')
RegisterUnitEvent(28882, 3, 'mob28882_Kill')
RegisterUnitEvent(28882, 4, 'mob28882_Die')
